Component({
    properties: {
        datas: {
            type: null
        }
    },
    data: {
        Height: 0,
        LastHeight: 0
    },
    lifetimes: {
        attached: function() {
            console.log("kkkkkk::", this.data.datas);
        },
        moved: function() {},
        detached: function() {}
    },
    attached: function() {},
    ready: function() {},
    pageLifetimes: {
        show: function() {},
        hide: function() {},
        resize: function() {}
    },
    methods: {
        imgHeight: function(t) {
            var e = wx.getSystemInfoSync().windowWidth * t.detail.height / t.detail.width + "px";
            parseInt(e) > this.data.LastHeight && (this.setData({
                Height: e
            }), this.data.LastHeight = parseInt(e));
        },
        goimgurl: function(t) {
            var e = t.currentTarget.dataset.item;
            if (e.hrefChoice && 2 == e.hrefChoice) if (e.appID) if (e.miniUrl) try {
                wx.navigateToMiniProgram({
                    appId: e.appID,
                    path: e.miniUrl,
                    extraData: {},
                    envVersion: "release",
                    success: function(t) {},
                    fail: function(t) {
                        wx.showToast({
                            title: "小程序跳转失败",
                            icon: "none",
                            duration: 2e3
                        });
                    }
                });
            } catch (t) {
                wx.showToast({
                    title: "小程序跳转失败",
                    icon: "none",
                    duration: 2e3
                });
            } else wx.showToast({
                title: "请设置跳转小程序后的跳转链接",
                icon: "none",
                duration: 2e3
            }); else wx.showToast({
                title: "请设置小程序所需跳转appId",
                icon: "none",
                duration: 2e3
            }); else {
                var i = e.hrefurl;
                try {
                    wx.navigateTo({
                        url: i
                    });
                } catch (t) {
                    wx.showToast({
                        title: "链接设置错误",
                        icon: "none",
                        duration: 2e3
                    });
                }
            }
        }
    }
});